<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>组件</title>
</head>
<body>
<div id="app">
<hello>nihao</hello>
</div>
<script>
    VUe.component("hello",{
        template:"<a href =''>百度</a>"

    });
    var app = new Vue({
        el:"#app"
    });
</script>
</body>
</html>